#!/usr/bin/env python
#-*- coding:utf8 -*-
import web
import hashlib
from app.models.model import Model
class Level(Model):
    table = 'levels'
    def create(self, data):
        try:
            return self.insert(uid = data['uid'],name = data['name'],type = data['type'])
        except:
            return False
